package com.hspedu.homework.homework02;

public class homework05 {
    public static void main(String[] args) {
     Car car1=  new Car(23);
        car1.get01().flow();

    }
}
class Car{
    int wendu;

    public Car(int wendu) {
        this.wendu = wendu;
    }

    class Air{
  public void flow(){
            if(wendu>30)
            {

                System.out.println("开冷风空调");
            }

            else if(wendu<10){

                System.out.println("开温暖的空调");
            }
            else
            {

                System.out.println("不开空调");
            }

        }


    }
        public  Air get01(){

            return new Air();
    }



}